# Contributor: Krassy Boykinov <kboykinov@teamcentrixx.com>
# Maintainer: Krassy Boykinov <kboykinov@teamcentrixx.com>
pkgname=tecla
pkgver=45.0
pkgrel=0
pkgdesc="Libadwaita keyboard layout viewer for the Gnome Desktop"
url="https://gitlab.gnome.org/GNOME/tecla"
arch="all"
license="GPL-2.0-or-later"
options="!check" # no tests
makedepends="
	gtk4.0-dev
	libadwaita-dev
	libxkbcommon-dev
	meson
	"
subpackages="$pkgname-dev $pkgname-lang" # !! watch for -doc in future updates
source="https://download.gnome.org/sources/tecla/${pkgver%.*}/tecla-$pkgver.tar.xz"

build() {
	abuild-meson . output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
	# move pkgconfigs to /usr/lib/
	mkdir -p "$pkgdir"/usr/lib/
	mv "$pkgdir"/usr/share/pkgconfig "$pkgdir"/usr/lib/

}

sha512sums="
ae1f38870c14467ef7a868b60bc1a12ae1584fdd5e158d1cbf6f6639586225c7ffb8cfa00edeefc3930d4225a3865932e7fa724a5dff5f0ece3372363df289ce  tecla-45.0.tar.xz
"
